package nc.bs.pn.pub;

import nc.bs.trade.billsource.DefaultBillFinder;
import nc.bs.trade.billsource.DefaultDataFinder;
import nc.bs.trade.billsource.IBillDataFinder;
import nc.vo.lm.pub.LmBillStatus;

public class PlanBillFinder extends DefaultBillFinder {
	
	public IBillDataFinder createBillDataFinder(String billType)
			throws Exception {
		if(billType.equalsIgnoreCase(LmBillStatus.BILL_TYPE_PLAN_YEAR)
				||billType.equalsIgnoreCase(LmBillStatus.BILL_TYPE_PLAN_MONTH)
				||billType.equalsIgnoreCase(LmBillStatus.BILL_TYPE_PLAN_TEMP))
		return new PlanDataFinder();
		else
			return new DefaultDataFinder();
	}
}
